package phone.qyg.com.qyg.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：lblbh on 2017/12/18 11:58
 * 邮箱：lanbuhan@163.com
 * 功能：关于
 */

public class About implements Parcelable {

    public String url;
    public String title;

    public About() {}

    public About(String url,String title){
        this.url = url;
        this.title = title;
    }

    @SuppressWarnings("unchecked")
    public About(Parcel in) {
        url = in.readString();
        title = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(url);
        dest.writeString(title);
    }


    public static final Creator<About> CREATOR = new Creator<About>() {
        @Override
        public About[] newArray(int size) {
            return new About[size];
        }

        @Override
        public About createFromParcel(Parcel in) {
            return new About(in);
        }
    };
}
